home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Sleep Deprivation 1.1 / source / sd code ƒ / a4 setup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  1.7 KB  |  48 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        a4 setup.h
  4.  
  5. Purpose:    This is an alternate header file instead of using "SetUpA4.h"
  6.             since that causes some technical problems in certain
  7.             circumstances.  The problems are solved by using this
  8.             shortened version and putting __GetA4() in the initialization
  9.             .c file instead.
  10.             
  11. Note:        This file was not written by the authors of Sleep Deprivation
  12.             and is not subject to the terms of the GNU General Public
  13.             License.
  14.  
  15.  
  16. Sleep Deprivation -- graphic effects on sleep
  17. Copyright (C) 1993 Mark Pilgrim & Dave Blumenthal
  18.  
  19. This program is free software; you can redistribute it and/or modify
  20. it under the terms of the GNU General Public License as published by
  21. the Free Software Foundation; either version 2 of the License, or
  22. (at your option) any later version.
  23.  
  24. This program is distributed in the hope that it will be useful,
  25. but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27. GNU General Public License for more details.
  28.  
  29. You should have received a copy of the GNU General Public License
  30. along with this program in a file named "GNU General Public License".
  31. If not, write to the Free Software Foundation, 675 Mass Ave,
  32. Cambridge, MA 02139, USA.
  33.  
  34. \**********************************************************************/
  35.  
  36. /*
  37.  *  SetUpA4.h
  38.  *
  39.  *  Copyright (c) 1991 Symantec Corporation.  All rights reserved.
  40.  *
  41.  */
  42.  
  43. #define RememberA4()    do { __GetA4(); asm { move.l a4,(a1) } } while (0)
  44. #define RememberA0()    do { __GetA4(); asm { move.l a0,(a1) } } while (0)
  45.  
  46. #define SetUpA4()        do { asm { move.l a4,-(sp) } __GetA4(); asm { move.l (a1),a4 } } while (0)
  47. #define RestoreA4()        do { asm { move.l (sp)+,a4 } } while (0)
  48.